const util = require('../../../utils/util.js');

Page({
  data: {
    usermoneyinfo: '',
  },
  onLoad: function () {
    this.getusermoneyinfo();
  },
  onShow: function () {

  },
  toAccountdetails() {
    wx.navigateTo({
      url: '/pages/mine/accountdetails/accountdetails'
    })
  },
  getusermoneyinfo: function () {
    let that = this;
    util.request('user/getusermoneyinfo').then(function (res) {
      console.log(res.data);
      if (res.errno === 0) {
        that.setData({
          usermoneyinfo:res.data.usermoneyinfo
        });
      }
    });
  }
  // toPutforward(){
  //   wx.navigateTo({
  //     url: '/pages/mine/putforward/putforward'
  //   })
  // }
})